<?php
/**
 * Created by PhpStorm.
 * User: Mak
 * Date: 2016/2/6
 * Time: 15:21
 */

namespace Home\Model;

use Think\Model;

class JwIpModel extends Model{


    protected $tableName="ip";

    public function getList() {
        $ret = $this->order('id asc')->select();
        return $ret;
    }

    public function getItem($No){
        $condition['No'] = $No;
        $ret = $this->where($condition)->find();
        return $ret;
    }
}